import {
  request
} from '../request/request.js'

export function getClassify() {
  return new Promise((resolve, resject) => {
    request({
      url: '/shop/goods/category/all',
      method: 'GET',
    }).then(res => {
      resolve(res)
    })
  })
};

export function getClassifyData(categoryId) {
  return new Promise((resolve, resject) => {
    request({
      url: '/shop/goods/list',
      method: 'GET',
      data:{categoryId}
    }).then(res => {
      resolve(res)
    })
  })
}